package com.zs.toolbox.web2j.system.message.domain.service;

import com.zs.toolbox.web2j.common.response.WtBaseResponse;
import com.zs.toolbox.web2j.system.message.domain.request.WtSendEmailRequest;
import com.zs.toolbox.web2j.system.message.domain.request.WxSendSmsVcodeRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author shuai.zhang  on 2018/9/22
 * @description
 */
@RequestMapping("/api/v1/message")
@Api("消息发送服务")
public interface WtMessageClientService {

    @PostMapping(value = "sendEmail")
    @ApiOperation("发送邮件服务")
    WtBaseResponse sendEmail(@RequestBody WtSendEmailRequest request);

    @PostMapping(value = "/sendPhoneRegisterCode")
    @ApiOperation("发送注册短信")
    WtBaseResponse sendPhoneRegisterVCodeSms(@RequestBody WxSendSmsVcodeRequest request);

    @PostMapping(value = "sendPhoneLoginCode")
    @ApiOperation("发送登陆短信")
    WtBaseResponse sendPhoneLoginVCodeSms(@RequestBody WxSendSmsVcodeRequest request);

    @PostMapping(value = "sendPhoneFindPasswordCode")
    @ApiOperation("发送找回密码短信")
    WtBaseResponse sendPhoneFindPasswordVCodeSms(@RequestBody WxSendSmsVcodeRequest request);

}
